home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 018a / pdxwp122.zip / PDX2WP.SC < prev    next >
Text File  |  1991-12-05  |  1KB  |  38 lines

  1. if nimages() > 0 then 
  2.  
  3.    showmenu
  4.       "Table"  : "Create a WordPerfect table from a Paradox table",
  5.       "Columns": "Create WordPerfect parallel columns from Paradox table",
  6.       "Merge"  : "Create WordPerfect secondary merge file from Paradox table",
  7.       "Fields" : "Create WordPerfect merge document with Field Names",
  8.       "Quit"   : "Cancel PDX2WP translation utility"
  9.    to choice
  10.  
  11.    switch
  12.       case choice = "Table":
  13.          run big "pdx2wp " + table() + ".tbl " + table() + " /t"
  14.  
  15.       case choice = "Columns":
  16.          run big "pdx2wp " + table() + ".col " + table() + " /c"
  17.  
  18.       case choice = "Merge":
  19.          run big "pdx2wp " + table() + ".mrg " + table() + " /m"
  20.  
  21.       case choice = "Fields":
  22.          run big "pdx2wp " + table() + ".mrg " + table() + " /mf"
  23.  
  24.       case choice = "Quit":
  25.       case choice = "Esc":
  26.          release vars choice
  27.          return
  28.  
  29.    endswitch
  30.  
  31. else
  32.  
  33.    message "Cannot run PDX2WP -- no table has been selected"
  34.    sleep 3000
  35.  
  36. endif
  37.  
  38.